package com.hl.sfzy.mapper.wxwappMapper;

import com.hl.sfzy.entity.wxwapp.ArticleDetail;
import com.hl.sfzy.entity.wxwapp.TeacherDetail;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author 14821
* @description 针对表【article(文章表，存储所有文章信息)】的数据库操作Mapper
* @createDate 2024-09-07 10:18:45
* @Entity com.hl.sfzy.entity.wxwapp.ArticleDetail
*/
@Repository
public interface ArticleDetailMapper {

    //根据id删除
    int deleteByPrimaryKey(Long id);

    //插入
    int insert(ArticleDetail record);

    int insertSelective(ArticleDetail record);

    ArticleDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleDetail record);

    int updateByPrimaryKey(ArticleDetail record);

    //查询全部文章，显示到vue后端界面中
    List<ArticleDetail> selectAllAryicle();
    //查询对应的教师id
    List<TeacherDetail> selectTeacherId();



}
